package com.example.wxai.pijo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 文章表
 * </p>
 *
 * @author author
 * @since 2024-12-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("essay")
public class Essay implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 文章id
     */
    @TableId(value = "essay_id", type = IdType.AUTO)
    private String essayId;

    /**
     * 文章作者id
     */
    private String essayAuthorId;

    /**
     * 文章作者名字
     */
    private String essayAuthorName;

    /**
     * 文章图片
     */
    private String essayImgs;

    /**
     * 文章标题
     */
    private String essayTitle;

    /**
     * 文章内容
     */
    private String essayContent;

    private String essayTime;

    /**
     * 点赞数
     */
    private Integer essayLikes;

    /**
     * 评论数
     */
    private Integer essayReviews;


}
